/*! imslib.js 1.13.0 2102361-cf9394e */ Array.prototype.every||(Array.prototype.every=function(e,t){"use strict";var n,i;if(null==this)throw new TypeError("this is null or not defined");var o=Object(this),r=o.length>>>0;if("function"!=typeof e)throw new TypeError;for(1>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s})}(),function(E){E.adobeid=function(e){"use strict";var t={};return"object"==typeof window.adobeid?t=window.adobeid:window.opener&&window.opener.adobeid?t=window.opener.adobeid:e.error("Missing window.adobeid, falling back to an empty object"),t.redirect_uri&&t.redirect_uri===window.location.href&&delete t.redirect_uri,t},E.build={endpoints:{authorize:{name:"authorize",endpoint:"https://ims-na1.adobelogin.com/ims/authorize/v1"},avatar:{name:"avatar/download",endpoint:"https://ims-na1.adobelogin.com/ims/avatar/download"},check:{name:"check/token",endpoint:"https://adobeid-na1.services.adobe.com/ims/check/${ version }/token"},check_status:{name:"check/status",endpoint:"https://adobeid-na1.services.adobe.com/ims/check/v1/status"},logout:{name:"logout",endpoint:"https://adobeid-na1.services.adobe.com/ims/logout/v1"},logout_token:{name:"logout_token",endpoint:"https://adobeid-na1.services.adobe.com/ims/logout/v1/token"},profile:{name:"profile",endpoint:"https://ims-na1.adobelogin.com/ims/profile/v1"},validate_token:{name:"validate_token",endpoint:"https://ims-na1.adobelogin.com/ims/validate_token/v1"},userinfo:{name:"userinfo",endpoint:"https://ims-na1.adobelogin.com/ims/userinfo/v1"},fg_value:{name:"fg_value",endpoint:"https://adobeid-na1.services.adobe.com/ims/fg/value/v1"},social_providers:{name:"social_providers",endpoint:"https://adobeid-na1.services.adobe.com/ims/social/v1/providers"},ijt:{name:"ijt",endpoint:"https://adobeid-na1.services.adobe.com/ims/jump/implicit/"}},methodTrackingEnabled:"false",sha:"2102361",version:"1.13.0"},E.config=function(e,t,n,i){"use strict";function o(){var e=i.getThisScriptSrc(),t=/\bclient_id=([^&]+)\b/.exec(e);return t?t[1].split(","):[]}e.debug&&t.toggleLogging(!0);var r,s,a=o();return a&&0!==a.length||(a=e.client_id),{api:n(a),client_id:e.client_id?Array.isArray(e.client_id)?e.client_id[0]:e.client_id:(t.info("Missing window.adobeid.client_id. Falling back to client_id from url. Please add client_id to window.adobeid"),o()[0]),locale:e.locale?e.locale:(t.info("Missing window.adobeid.locale. Falling back to locale from url. Please add locale to window.adobeid"),r=i.getThisScriptSrc(),(s=/\blocale=([^&]+)\b/.exec(r))?s[1]:""),refreshSsoCookiesEnabled:!1,sloEnabled:!0,sunbreakScope:"acct_mgmt_webui",sunbreakScopeExpanded:"acct_mgmt_api,gnav,update_profile.address.mail_to,update_profile.dob,update_profile.email,update_profile.first_name,update_profile.industry,update_profile.job_function,update_profile.job_title,update_profile.last_name,update_profile.mrktPerm,update_profile.phoneNumber,update_profile.phonetic_name,update_profile.preferred_languages,update_profile.screen_name,update_profile.secondary_email"}},E.mapEndpoints=function(c){return function(e){"use strict";var t=c.endpoints;Array.isArray(e)||(e=[e]);var n={version:{v1:"v1"}};for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],r={name:o.name,endpoint:{}};n[i]=r;for(var s=0,a=e.length;si.expiresAtMilliseconds?i:void 0},loadFromStorage:function(){var i=this;function e(n){v.keys(n).forEach(function(t){if(t.startsWith(y))try{var e=v.get(t,n);if(!i.isKnownClientID(e.client_id))return;i._isAccessTokenInfoUsable(e)?i._accessTokensInfos[t]=e:(g.info("unusable access token info: "+l.getItem(t)),v.remove(t,n))}catch(e){v.remove(t,n)}})}e((this._accessTokensInfos={},!1)),e(!0),this._profile=s.get()},shouldAcceptTheToken:function(e,t,n,i,o,r){return u.shouldAcceptToken(e,t,n,i,o,r,this._profile&&this._profile[R])},testAccessTokenIsStillValid:function(t,n){var i=this,o=this._accessTokensInfos[this.getKeyForAccessToken(t)];g.assert(o,"we need token information to validate it");var r=function(e){g.info("validate/token: access_token is invalid. removing."),i._clearCredentials({updateUI:i.onReadyAlreadyCalled,access_token:t});try{e.token&&i.isKnownClientID(e.token.client_id)&&i.matchesTheRequiredScope(e.token.scope)&&k.callIfFunction(i.adobeid.onAccessTokenHasExpired,i.adobeid,[t,o])}catch(e){h.onError(p.jsException(e,"onAccessTokenHasExpired"))}o.isReAuthentication?n():i.signInBasedOnSingleSignOnSSO(function(){!i.isSignedInUser()&&i.isMandatorySignIn()&&i.signIn(),n()})};o&&this.isKnownClientID(o.client_id)?a.validateToken(o,function(e){e.token&&i.shouldAcceptTheToken(t,e.token.client_id,e.token.scope,e.token.user_id,e.valid,o.isReAuthentication)?n():r(e)},r):r()},setStandaloneToken:function(e){this.adobeid.standalone.token=e,D.call(this)},_importDataFromModalWindow:function(e){if(k.isEmptyObject(e._accessTokensInfos))this._clearCredentials({updateUI:!0});else{for(var t in this.contextPassedFromRedirect=k.cloneObject(e.contextPassedFromRedirect),U=e.getState(),k.equals(e._profile,this._profile)||k.isEmptyObject(e._profile)||this.setProfile(k.cloneObject(e._profile),!0),e._accessTokensInfos)if(!k.equals(e._accessTokensInfos[t],this._accessTokensInfos[t])){var n=k.cloneObject(e._accessTokensInfos[t]);v.set(t,this._accessTokensInfos[t]=n,n.isReAuthentication),this.validateSSOCookieLifetime(this._accessTokensInfos[t].access_token)}this._callCallbacksToUpdateUI(),e.isSignedInUser(!0)&&!this.isSignedInUser(!1)&&this.signInBasedOnSingleSignOnSSO()}},_isFinalRedirectPageInModalMode:function(){return _.getHref().includes(E)&&window.opener&&window.opener!==window},isModal:function(){return!!this._isFinalRedirectPageInModalMode()||(!0===this.adobeid.uses_modal_mode&&!0===this.adobeid.uses_redirect_mode?(g.error("redirect mode and modal mode both enabled"),!0):"boolean"==typeof this.adobeid.uses_modal_mode?this.adobeid.uses_modal_mode:!1===this.adobeid.uses_redirect_mode)},switchToModalMode:function(){this.adobeid.uses_redirect_mode=!(this.adobeid.uses_modal_mode=!0)},switchToRedirectMode:function(){this.adobeid.uses_redirect_mode=!(this.adobeid.uses_modal_mode=!1)},getLocale:a.getLocale,getReleaseFlags:function(n,e){null===F?a.getReleaseFlags(this.getAccessToken(),function(e,t){M=t||null,F=e||null,k.callIfFunction(n,null,[e,t])},e):k.callIfFunction(n,null,[F,M])},isReleaseFlagActive:function(e){return!!M&&"1"===M[e]},getScope:a.getScope,matchesTheRequiredScope:n.matchesRequiredScope,sunbreakHack:n.sunbreakHack,getClientID:a.getClientId,isKnownClientID:n.isKnownClientID,_ajaxGet:function(n,i,e){var o=this,t=function(e,t){e?h.onError(p.network(n)):i.call(o,t)};"jsonp"!==e&&r.corsSupported?r.cors({onLoad:t,url:n}):r.jsonp(n,{},t)},getAdobeIdApiParametersForApi:a.getCustomApiParameters,getUrlForApiCall:function(e,t,n){return 2===arguments.length&&(n=t,t=null),a.getApiUrlWithQuery(e,n,t)},makeApiCall:a.makeApiCall,_clearCredentials:function(e){var t;if(e&&e.access_token)t=this.getKeyForAccessToken(e.access_token),v.remove(t,!1),v.remove(t,!0),delete this._accessTokensInfos[t];else{for(t in this._accessTokensInfos)t.startsWith(y)&&v.remove(t,this._accessTokensInfos[t].isReAuthentication);this._accessTokensInfos={},s.clear(),this._profile=null,this._clearTimerTestSSOCookieWillExpire()}e&&!0===e.updateUI&&this._callCallbacksToUpdateUI(e)},_callCallbacksToUpdateUI:function(e){if(this._last_ui_update.areThereUIUpdatesToPerform()){var t=k.cloneObject(this._last_ui_update);if(this._last_ui_update.update(),t.areThereUIUpdatesToPerformForProfile()&&o.dispatchEvent(c.types.PROFILE,{profile:this._profile}),t.areThereUIUpdatesToPerformForAccessTokens())if(e&&e.access_token){var n=this._accessTokensInfos[this.getKeyForAccessToken(e.access_token)];n?o.dispatchEvent(c.types.ACCESS_TOKEN,{accessTokenInfo:n}):o.dispatchEvent(c.types.ACCESS_TOKEN_EXPIRED,{accessTokenInfo:{access_token:e.access_token}})}else for(var i in this._accessTokensInfos)k.equals(this._accessTokensInfos[i],t._accessTokensInfos[i])||o.dispatchEvent(c.types.ACCESS_TOKEN,{accessTokenInfo:this._accessTokensInfos[i]})}},_openWindow:function(e,t){if(this.isModal()){var n=Math.min(t&&t.width||A.any.width,screen.availWidth),i=Math.min(t&&t.height||A.any.height,screen.availHeight);(function(e,n){O&&(O.closed||O.close(),O=null);var i=[];return Object.keys(n||{}).forEach(function(e){var t=n[e];!0===t?t="yes":!1===t?t="no":t+="",i.push(e+"="+t)}),(O=k.openPopup(e,w,i.join(",")))&&"function"==typeof O.focus&&O.focus(),O})(e,{width:n,height:i,left:parseInt((screen.availLeft?screen.availLeft:0)+Math.max(0,screen.availWidth-n)/2),top:parseInt((screen.availTop?screen.availTop:0)+Math.max(0,screen.availHeight-i)/2),toolbar:!1,menubar:!1,scrollbars:!0,resizable:!0})||h.onError(p.popupBlocked(e))}else _.setHref(e,!this.isMandatorySignIn());this.contextToBePassedOnRedirect=null},toggleLogging:g.toggleLogging},x),e.trackObject(x),function(){var e=this;this.adobeid=t,this._accessTokensInfos={},this._profile=null,this._last_ui_update={_any_update_so_far:this._is_already_attached_to_ui=!1,_accessTokensInfos:{},_profile:null,update:function(){this._any_update_so_far=!0,this._accessTokensInfos=k.cloneObject(e._accessTokensInfos),this._profile=k.cloneObject(e._profile)},areThereUIUpdatesToPerformForAccessTokens:function(){return!this._any_update_so_far||!k.equals(this._accessTokensInfos,e._accessTokensInfos)},areThereUIUpdatesToPerformForProfile:function(){return!this._any_update_so_far||!k.equals(this._profile,e._profile)},areThereUIUpdatesToPerform:function(){return this.areThereUIUpdatesToPerformForProfile()||this.areThereUIUpdatesToPerformForAccessTokens()}}}.call(x),x},E.analytics=function(e,t){"use strict";var o="jslMethods",r=[],s=[],a={},c=function(){return e.session},n=function(){var e=c().getItem(o);return e=e?e.split("+").map(function(e){return parseInt(e,10)}):[]};return{getMethods:function(){return t?s:[]},trackObject:function(i){if(t){for(var e in s=n(),i)i.hasOwnProperty(e)&&"function"==typeof i[e]&&(r.push(e),a[e]=i[e],function(){var n=e;i[n]=function(){var e,t;return r.includes(t=e=n)&&(t=r.indexOf(e),s.includes(t)||(s.push(t),s.sort(function(e,t){return e-t}),c().setItem(o,s.join("+")))),a[n].apply(i,arguments)}}());r.sort()}}}},E.base32=function(){"use strict";var r={"=":0};function s(e){return t="0",0<(i=5-(n=e.toString(2)).length)&&(n=Array(i+1).join(t)+n),n;var t,n,i}return"abcdefghijklmnopqrstuvwxyz234567".split("").forEach(function(e,t){r[e]=t}),{decodeToBitstring:function(e){if("string"!=typeof e)throw Error("Data is not a string");var t=e.toLowerCase().split("");!function(e){if(e.length%8!=0)throw Error("Data length is not a multiple of 8");e.forEach(function(e){if(!(e in r))throw Error("Unknown encoded character "+e)});var t=!1;e.forEach(function(e){if("="!==e&&t)throw Error("Found padding char in the middle of the string");"="===e&&(t=!0)})}(t);var n=function(e){for(var t=e.length-1,n=0;"="===e[t];)++n,--t;return n}(t),i=[];t.forEach(function(e){i.push(s(r[e]))});var o=i.join("");return 0